/* 去水印页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    text-align: center;
    font-size: 2.5em;
    font-weight: 300;
}

.upload-section {
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.file-upload {
    position: relative;
    display: inline-block;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.file-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 10px;
    color: #333;
}

.options-section {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.options-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.option-group {
    margin-bottom: 25px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.option-group select,
.option-group input {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.option-group select:focus,
.option-group input:focus {
    outline: none;
    border-color: #667eea;
}

.coordinate-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
}

.coordinate-inputs input {
    text-align: center;
}

.hint {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.preview-section {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.preview-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.original, .processed {
    text-align: center;
}

.original h4, .processed h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.original img,
.original video,
.processed img,
.processed video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.action-section {
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.action-btn {
    padding: 15px 30px;
    margin: 0 10px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.action-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.results-section {
    padding: 40px;
}

.results-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

#results {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
    min-height: 50px;
}

@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .coordinate-inputs {
        grid-template-columns: 1fr 1fr;
    }
    
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 2em;
        padding: 20px;
    }
}